package com.example.diet_sport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;

/**
 * @author 伽蓝尘
 * @create 2023-06-03 15:45
 */
public class sport {
    @TableId(type = IdType.AUTO)
    private Integer id;	//主键id

    private String name;	//运动名称

    private String avatarurl;	//图片地址

    private BigDecimal heat;	//热量


    @Override
    public String toString() {
        return "sport{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", avatarUrl='" + avatarurl + '\'' +
                ", heat=" + heat +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatarUrl() {
        return avatarurl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarurl = avatarUrl;
    }

    public BigDecimal getHeat() {
        return heat;
    }

    public void setHeat(BigDecimal heat) {
        this.heat = heat;
    }
}
